<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>智能软件测试助手 - 中国联通软件研究院</title>
    <!-- 引入图标库 -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
    <style>
        :root {
            --primary-color: #E60027; /* 联通红 */
            --primary-hover: #c40022;
            --bg-color: #f5f7fa;
            --sidebar-width: 280px;
            --text-dark: #333;
            --text-light: #666;
            --border-color: #e0e0e0;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
        }

        body {
            background-color: var(--bg-color);
            display: flex;
            height: 100vh;
            overflow: hidden;
        }

        /* 侧边栏样式 */
        .sidebar {
            width: var(--sidebar-width);
            background: white;
            border-right: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            padding: 20px;
            height: 100%;
        }

        .user-profile {
            display: flex;
            align-items: center;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 20px;
        }

        .avatar {
            width: 48px;
            height: 48px;
            background: linear-gradient(135deg, #E60027, #ff6b6b);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 20px;
            margin-right: 12px;
        }

        .user-info h3 {
            font-size: 16px;
            color: var(--text-dark);
        }

        .user-info p {
            font-size: 12px;
            color: var(--text-light);
        }

        .user-role {
            font-size: 12px;
            color: var(--primary-color);
            background: #ffe6e9;
            padding: 2px 6px;
            border-radius: 4px;
            margin-top: 4px;
            display: inline-block;
        }

        .history-section {
            flex: 1;
            overflow-y: auto;
            margin-bottom: 20px;
        }

        .section-title {
            font-size: 14px;
            color: #999;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .empty-history {
            text-align: center;
            color: #ccc;
            font-size: 14px;
            margin-top: 50px;
        }

        .sidebar-actions {
            border-top: 1px solid var(--border-color);
            padding-top: 20px;
        }

        .btn-sidebar {
            width: 100%;
            padding: 10px;
            text-align: left;
            background: none;
            border: none;
            color: var(--text-dark);
            cursor: pointer;
            border-radius: 6px;
            font-size: 14px;
            transition: background 0.3s;
            margin-bottom: 5px;
            display: flex;
            align-items: center;
        }

        .btn-sidebar i {
            width: 24px;
            color: var(--text-light);
        }

        .btn-sidebar:hover {
            background-color: #f0f0f0;
        }

        .btn-sidebar.danger:hover {
            background-color: #fff1f0;
            color: var(--primary-color);
        }

        .btn-sidebar.danger i {
            color: inherit;
        }

        /* 主内容区样式 */
        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: relative;
            background-image: radial-gradient(#e6002708 1px, transparent 1px);
            background-size: 20px 20px;
        }

        .org-logo {
            position: absolute;
            top: 20px;
            right: 30px;
            font-weight: bold;
            color: var(--text-light);
            display: flex;
            align-items: center;
            gap: 10px;
            opacity: 0.8;
        }

        .welcome-card {
            width: 100%;
            max-width: 800px;
            text-align: center;
            padding: 0 20px;
        }

        .welcome-card h1 {
            font-size: 2.5rem;
            color: var(--text-dark);
            margin-bottom: 10px;
            font-weight: 700;
        }

        .welcome-card .subtitle {
            font-size: 1.1rem;
            color: var(--text-light);
            margin-bottom: 40px;
        }

        .input-area {
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            padding: 20px;
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
        }

        .input-area:focus-within {
            box-shadow: 0 6px 25px rgba(230, 0, 39, 0.15);
            border-color: var(--primary-color);
        }

        textarea {
            width: 100%;
            height: 120px;
            border: none;
            resize: none;
            font-size: 16px;
            outline: none;
            color: var(--text-dark);
            margin-bottom: 15px;
        }

        textarea::placeholder {
            color: #aaa;
        }

        .action-buttons {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .btn-group {
            display: flex;
            gap: 15px;
        }

        .btn {
            padding: 10px 24px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            border: 1px solid transparent;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-primary {
            background-color: var(--primary-color);
            color: white;
            box-shadow: 0 4px 10px rgba(230, 0, 39, 0.3);
        }

        .btn-primary:hover {
            background-color: var(--primary-hover);
            transform: translateY(-1px);
        }

        .btn-secondary {
            background-color: white;
            border-color: var(--border-color);
            color: var(--text-dark);
        }

        .btn-secondary:hover {
            background-color: #f8f8f8;
            border-color: #ccc;
        }

        .tips {
            margin-top: 30px;
            display: flex;
            gap: 15px;
            justify-content: center;
        }

        .tip-chip {
            background: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 12px;
            color: var(--text-light);
            border: 1px solid #eee;
            cursor: pointer;
        }

        .tip-chip:hover {
            border-color: var(--primary-color);
            color: var(--primary-color);
        }

    </style>
</head>
<body>

    <!-- 左侧侧边栏 -->
    <aside class="sidebar">
        <!-- 用户信息 -->
        <div class="user-profile">
            <div class="avatar">
                <i class="fa-solid fa-robot"></i>
            </div>
            <div class="user-info">
                <h3>Maynorai1</h3>
                <span class="user-role">User</span>
                <p style="margin-top: 5px;">Chinaunicom Software</p>
            </div>
        </div>

        <!-- 历史记录 -->
        <div class="history-section">
            <div class="section-title">
                <span>历史操作</span>
                <small style="cursor: pointer;">全部</small>
            </div>

            <div class="empty-history">
                <i class="fa-regular fa-folder-open" style="font-size: 24px; margin-bottom: 10px;"></i>
                <p>暂无历史记录</p>
            </div>
        </div>

        <!-- 底部功能区 -->
        <div class="sidebar-actions">
            <button class="btn-sidebar">
                <i class="fa-solid fa-file-arrow-down"></i> 下载全部报告
            </button>
            <button class="btn-sidebar">
                <i class="fa-solid fa-chart-pie"></i> 下载报告统计
            </button>
            <button class="btn-sidebar danger">
                <i class="fa-solid fa-trash-can"></i> 清空历史
            </button>
        </div>
    </aside>

    <!-- 主操作区 -->
    <main class="main-content">
        <!-- 顶部水印/Logo -->
        <div class="org-logo">
            <i class="fa-solid fa-building"></i> 中国联通软件研究院
        </div>

        <div class="welcome-card">
            <h1>欢迎使用智能软件测试助手</h1>
            <p class="subtitle">请输入您的测试任务需求，我们将为您提供专业的自动化测试服务。</p>

            <!-- 输入区域 -->
            <div class="input-area">
                <textarea placeholder="例如：请帮我对登录模块进行功能测试，包含异常密码输入的场景..."></textarea>

                <div class="action-buttons">
                    <button class="btn btn-secondary">
                        <i class="fa-solid fa-upload"></i> 导入用例
                    </button>
                    <button class="btn btn-primary">
                        <i class="fa-solid fa-paper-plane"></i> 开始测试
                    </button>
                </div>
            </div>

            <!-- 快捷提示词 (可选优化) -->
            <div class="tips">
                <span class="tip-chip">性能测试脚本生成</span>
                <span class="tip-chip">接口自动化用例</span>
                <span class="tip-chip">UI 回归测试</span>
            </div>
        </div>
    </main>

</body>
</html>
